System and method for diagnosis of living tissue diseases

ABSTRACT

A system and method for diagnosis of living tissue diseases is described. The system includes a computer device for controlling its operation. An operator control device is coupled to the computer device. A viewing screen is coupled to the computer device for displaying digitized images of the living tissue. The operator, using the control device, selects desired portions of the digitized image for further image enhancement according to a desired image enhancement feature selectable from a plurality of image enhancement features. The image enhancement features include any combination of grey scale stretching, contrast enhancement based on logarithmic histogram equalization, spot enhancement and magnification. The system further includes means for visualization and quantification of micro-calcifications, and means for visualization and quantification of mass spiculations.

This application is a continuation of application Ser. No. 08/345,052 filed on Nov. 25, 1994, now abandoned, which is a continuation-in-part of an application Ser. No. 08/289,381 filed Aug. 11, 1994, now pending.

FIELD OF THE INVENTION

The present invention relates to a diagnostic workstation, and more particularly to a computer assisted system and method for the detection and diagnosis of living tissue diseases.

BACKGROUND OF THE INVENTION

Breast cancer affects a major segment of the female population over the age of 40. To reduce the mortality from this disease, it is vital to diagnose it as early as possible. If breast cancer is detected early enough, chances of a cure are markedly higher. Accordingly, breast cancer screening projects designed for early detection of breast cancer have proven to dramatically reduce the mortality from the disease. Because breast cancer is such a major public health problem, many health authorities worldwide recommend that women undergo routine breast examination.

Today, the standard methods for detecting breast cancer are 1) self examination; 2) clinical examination; and 3) radiography of the breast, known as mammography. Routine mammography screening can reduce mortality from breast cancer. The American Cancer Society recommends that a baseline mammogram be taken between the ages of 35 and 39, every one to two years between the ages of 40-49 and annually on women aged 50 years and older.

The main objective of screening mammography is to detect breast cancer early, before it is palpable. The standard mammographic procedure is to take two views of each breast with specially designed mammography equipment. The breast is optimally positioned so that as much tissue as possible can be examined. The radiologist visually examines the mammographic images on a light box. Using a magnifying glass, the radiologist examines each image in detail. If the radiologist detects any suspicious findings on mammographic examination, he or she may suggest a biopsy of the suspicious area. Suspicious findings include any abnormalities in the breast tissue. Abnormalities may be either malignant or benign, and many times the radiologist cannot diagnose precisely the type of abnormality from the image. Additionally, it has been established that 10-30% of women who indeed have breast cancer have negative mammograms.

There are four possible outcomes in screening mammography:

1) True positive: Earlier detection, treatment and better prognosis;

2) True negative: Reassurance of no cancer;

3) False positive: Anxiety and time, cost and risks of more tests; and

4) False negative: Delay in diagnosis and treatment. Worse prognosis.

The technical interpretive expertise of the radiologist is a crucial factor in effective breast cancer detection. A standard non-invasive procedure does not exist to diagnose a patient after a finding has been detected by mammography. When there is a suspicious finding, a biopsy is frequently performed. Because the information on the mammogram many times is ambiguous, in order not to miss the diagnosis of cancers, many biopsies are performed for mammographic abnormalities. Approximately 70% of these biopsies turn out to be benign.

Although there have been many improvements in the mammographic equipment over the last 10 years, technical impediments limit the ability of mammography to display the finest or most subtle details in good contrast. In order to achieve specific diagnoses, the radiologist needs to visualize the infrastructure of the mammographic abnormality.

Currently, cancers imbedded in dense breast tissue are found at later stages than those in breasts with high fat percentage of tissue. These cancers in dense breasts, in particular, need an earlier detection method. Although radiologists specializing in mammography have stated that the constraints of conventional mammography can be overcome by digital image processing, an effective digital diagnostic assistance approach has not yet been available.

SUMMARY OF THE INVENTION

The combination of advanced imaging technology with image processing and analysis in the proposed mammographic workstation enables radiologists to detect cancer at its earliest stages and to eliminate many unnecessary biopsies.

The system is designed to support radiologists' analyses by characterizing equivocal and suspicious findings detected on routine mammograms, so as to improve visualization of the suspected finding and to quantify the mammographic features of suspected lesions.

While the system according to the present invention is intended to assist radiologists in diagnosing breast cancer more accurately, reliably, and objectively, it could, also be utilized in the detection and analysis of cancer of other body parts.

The digitization processes for mammography applications have been developed to assist the physician in needle guided biopsies. In addition, on-going research is mainly dedicated to automating the lesion detection process. In contradistinction thereto, the present invention is based in part on the view that a computer cannot locate lesions as efficiently and reliably as the radiologist. Accordingly, the system, by enhancing the visual appearance of a region of interest in the mammogram, assists radiologists by improving their diagnostic accuracy, and hence, diagnostic effectiveness. However, as an alternative feature, the system by analyzing the entire mammogram can also automatically diagnose the presence of a tumor and determine malignancy, with a certain degree of reliability.

In accordance with the present invention there is therefore provided a system for diagnosis of living tissue diseases, comprising a computer, a memory, an operator control device, a viewing screen, and a scanning device for digitizing mammograms and for applying the digitized information to the computer for storing, displaying and further processing. The computer includes circuit means enabling on-line display of selected portions of a scanned mammogram as modified to one or more selectable features. These features include grey scale stretching, contrast enhancement based on logarithmic histogram equalization, spot enhancement and magnification. The computer further includes an option for visualization and quantification of micro-calcifications and mass speculations.

The invention further provides a method for diagnosis of living tissue diseases, including the steps of providing a digital image of a tissue to a computer; storing the digital image in a memory coupled to the computer; displaying the digital image on a viewing screen; manipulating a computer controlled pointing device for selecting a portion of the digital image; enhancing the image contained within the selected portion according to one or more options from a plurality of image enhancement features including grey scale stretching, contrast enhancement based on logarithmic histogram equalization, spot enhancement and magnification. The method further including steps for visualizing micro-calcifications and mass speculations and quantifying the micro-calcifications and the mass speculations.

The invention will now be described in connection with certain preferred embodiments with reference to the following illustrative figures so that it may be more fully understood.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of the system for diagnosis of living tissue diseases, according to the present invention;

FIG. 2 is a flowchart illustrating the scanning process;

FIG. 3A illustrates a grey level conversion curve used in prior art systems;

FIGS. 3B, 3C and 3D illustrate grey level conversion curves, according to the present invention;

FIGS. 3E, 3F and 3G are photographs illustrating enhancement of contrast of an actual mammogram using different conversion curves according to the present invention;

FIG. 4A illustrates a logarithmic cumulative histogram;

FIGS. 4B, 4C and 4D are photographs illustrating enhancement of grey levels of a mammogram utilizing different logarithmic histograms;

FIGS. 5A, 5B and 5C are photographs illustrating result obtained by utilizing different magnification factors of a zoomed area;

FIGS. 5D, 5E and 5F illustrate the pixels in the original image and the magnified images;

FIG. 6A is a flowchart illustrating spot enhancement process;

FIG. 6B illustrates a convolution mask used in the spot enhancement process;

FIG. 6C and 6D illustrate two tables with elements representing the grey level value of pixels in digital image, before and after convolution used in the spot enhancement process;

FIG. 6E illustrates a conversion curve obtained by the spot enhancement process;

FIG. 7A is a flowchart illustrating detection and quantification of micro-calcifications;

FIG. 7B is a continuation of FIG. 7A;

FIGS. 7C and 7D illustrate examples of pixels analyzed in conjunction with the process illustrated in FIGS. 7A and 7B;

FIG. 8A illustrates a representation of a tumor mass on the digital image;

FIG. 8B illustrates spiculations in a Binary Gradient image of the tumor mass of FIG. 8A;

FIG. 8C is a histogram of the Binary Gradient image of FIG. 8B;

FIG. 8D is a flowchart illustrating detection and quantification of mass speculations;

FIG. 9 is a flowchart illustrating the process of defining a mass border;

FIG. 10a is a flowchart illustrating the process for calculating the sharpness value of a border;

FIGS. 10b and 10c illustrate a mass with a normal line extending through it;

FIG. 10d illustrates the profile of grey level along the normal line illustrated in FIGS. 10b and 10c; and

FIG. 11 illustrates an unsmoothed and smoothed mass border with a plurality of segments.

DETAILED DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates a system 11 for the detection and diagnosis of diseases of living tissues, in particular, breast cancer. The system includes a memory or mass storage device 2, a high resolution, non-interlaced, super-VGA display 4, a keyboard 6 and a pointing device 8. The system further includes a scanning device 10, constituting an input to a PC AT compatible microcomputer 12. The device 10 is capable of scanning mammograms of different sizes and of providing resolutions of up to 800 dots per inch, which enables the digitization of living tissue radiograph, e.g., a breast radiograph or mammogram. Such resolution translates into a digital image with pixel sizes of about 30 to 40 microns. The microcomputer 12 communicates with an image processing board 14, having an image capacity of 1024×1024 bits or more, which is incorporated into the microcomputer 12. The board 14 includes a frame buffer 16, a memory 18 and auxiliary processors 20 supporting image processing algorithms. The output from the microcomputer 12 may include an image printer 22 and/or a network terminal 24 for electronic communication with other locations, such as other clinics.

In operation, the user first scans the X-ray or the mammogram by the scanning device 10. The system yields a converted digital image and displays the digital image on display 4. Display 4 displays the digitized image as well as the menus and the text. Display 4 receives signals which represent a combination of the "VGA" mode and the "Image" mode.

The user inspects the displayed digital image, to locate a region or regions that appear to be suspicious. These regions are referred to as regions of interest ("ROI"). The user uses the pointing device 8 to define a ROI on the displayed digital image. For example, by moving the pointing device 8, the system draws a frame on a portion of the digital image, which includes the ROI. The user then according to the present invention, chooses a specific image enhancement feature to enhance the image in the defined region of interest. The operation of the enhancement process is interactively controlled by the user by means of the pointing device, until the displayed appearance of the processed region on the screen is optimized. Additional means can be used to magnify the whole image or specific regions thereof, so that small details can be more clearly visualized. These means enable the radiologist to point out on the display the suspected findings on which further analysis may be required.

In order to better characterize suspected findings and obtain objective analysis thereof, the system also provides means for quantitative measurement. The quantitative analysis can be performed either on micro-calcification clusters or on high density masses in the tissue. In utilizing these further means, the user defines the area containing the suspected findings and chooses the features to be measured.

The enhanced information, i.e., images and the numbers characterizing the suspected findings, may be stored, printed, or transmitted through an electronic network to other physicians. Different features of the system will be described in further detail hereinafter.

SCANNING PROCESS

In the illustrated embodiment of the invention, the high resolution scanning device 10 is used to scan a mammogram film image to provide a digitized image with pixels having shades of grey, within a 256 grey scale. A preferred scanning device 10 is a line CCD flat bed scanner. The digital image is displayed on screen 4. The system 11 is used to overcome the main visual restrictions of the displayed images, including local low contrast, and small dimensions of suspected findings.

Typical commercial scanners have an option to control their exposure time (E) and brightness (B). The exposure time is the time during which the mammogram is exposed to a scanning light, and the brightness is the degree of luminance of that light. Briefly, the scanning process is accomplished by automatically adjusting the variable exposure time (E), and the variable brightness (B) of the scanning device 10. Typically, the scanner scans the image several times, preferably 3 to 5 times, while the system adjusts the exposure time and brightness on each scan to provide a digital image with an optimally high contrast.

The operation of the scanning process according to the present invention is described in more detail hereinafter. The digital image at the output of scanning device 10 consists of pixels corresponding to the scanned mammogram. The scanning device assigns a grey level value from zero to 255 to each pixel based on the optical density of the corresponding point on the mammogram. The optical density is the degree of opacity of each point on the mammogram and is defined as the common logarithm of opacity. Hence, a point on the mammogram that transmits 100 percent of the light has a density of zero, a point that transmits 10 percent of the light has a density of 1, and so forth.

One characteristic of the scanning process, which defines the quality of the digital image is the brightness range, which corresponds to the contrast of the digital image. The brightness range is defined as the difference between the assigned grey levels of the darkest "black" and the whitest "white" points on the digital image. An image with an optimum brightness range is one that all the black points have a grey level close to zero, and all the white points have a grey level close to 255.

However, with available commercial scanners, a typical scan of a mammogram produces a digital image having a brightness range that is less than the optimum attainable. For example, the grey level of the darkest point on the image might be 85 and the grey level of the brightest point on the image might be 150.

The system optimizes the brightness range of the digital image by varying the two parameters exposure time (E) and brightness (B) of the scanning device according to a novel optimization method.

The grey level of each pixel of the digital image varies as a function of the exposure time (E) and brightness (B). The brightness range of the digital image is defined as

    Gmax (E,B)-Gmin(E,B)

where, Gmax (E,B) and Gmin (E,B) are respectively the maximum and minimum grey level of pixels in the image scanned under a given exposure time E and brightness B.

The range of the brightness B and exposure time E varies and depends on the scanning device. For the scanning device utilized in the preferred embodiment of the present invention, the brightness range of the scanning device is from -100 to 100, and the exposure time range is from 0 to 255. For a given exposure time Eo, the minimal brightness value (Bmin=-100) provides the minimum value for Gmin, i.e., (Gmin (Eo, Bmin))=min{Gmin (Eo, B)} and the maximal brightness value {Bmax=100} provides the maximal value for Gmax, i.e., (Gmax (Eo, Bmax))=Max {Gmax (Eo, B)}. Similarly, for a given brightness Bo, the minimal exposure time value (Emin=.0.) provides the minimal value for Gmin, i.e., (Gmin (Emin, Bo)=min {Gmin (E, Bo)} and the maximal exposure time value (Emax=255) provides the maximal value for Gmax, i.e., Gmax (Emax, Bo)=Max {Gmax (E, Bo)}.

Thus, the grey level G of each pixel of the digital image of a mammogram is a function of three parameters: the two variable parameters (E) and (B) of the scanning device 10; and the optical density (OD) of points on the mammogram or the X-ray, and is defined as

    G=f(B, E, OD).

A novel method to optimize the brightness range is now described with reference to FIG. 2A. The first part of the scanning process includes steps 200 and 202, which constitute the calibration phase of the scanning device 10. The system begins at step 200 when a sample film with various regions of known optical density is placed on the scanning device for scanning. The sample film is preferably a "Kodak photographic step table No. 1A", which has 11 steps or regions of optical density with values approximately ranging from 0.05 to 3.05. It is assumed that this range completely covers the optical density range which appears on real mammograms. At step 202 the scanning device 10 repeatedly scans each region or step of the sample film having a given optical density while the exposure time (E) and brightness (B) are varied. The scanner produces a set of grey levels G(E,B) corresponding to each region or step of optical density (OD). When all the regions on the sample are scanned while varying the (E) and (B) values of the scanner, the system has stored a group of three dimensional tables each corresponding to one optical density region on the sample. The three dimensions are exposure time (E), brightness (B) and resulting grey level (G). The resulting group of three dimensional tables can be viewed in a three dimensional space as a plurality of spaced apart [(G),(E),(B)] surfaces, with each surface corresponding to a given optical density (OD). The resulting group of the three dimensional tables represents the output characteristic of the scanning device with respect to variable exposure time and brightness for a given range of optical density. These characteristics remain constant for a certain period of time, and therefore it is not necessary to repeat steps 200 and 202 every time the scanner scans a mammogram.

At step 204 an actual mammogram is placed on the scanning device 10 to begin the scanning process. In order to obtain an optimum brightness range, the scanning device performs multiple scans as explained hereinafter. At step 206, the values of exposure time (E) and brightness (B) of the scanning device 10 are set to an initial value, such that for most images, the scan yields a digital image with a fair range between Gmin and Gmax without getting saturation effects. For the scanning device used in the preferred embodiment, these initial values are B=60 and E=90. However, these values may differ from one scanning device to the other. At step 208, the scanning device scans the mammogram and stores the derived grey level of each pixel of the digital image. At step 210, the system measures the brightness range by taking the difference between the maximum and minimum grey levels of the pixels in the scanned image. The system then performs an optimization process at steps 212 and 214 to estimate new values of exposure time (E) and brightness (B) that will increase the brightness range. The process of getting the new estimates for (E) and (B) begins at step 212. Based on the values of (E) and (B) used to scan the mammogram, the system derives the extreme optical density (OD) values of the darkest and brightest spots on the mammogram from the three dimensional table G(E, B) which was derived during the scan of the film. If the system is not able to find the (OD) value corresponding to the values of (E) and (B) used during the scan, it estimates a value based on a standard interpolation routine.

Thereafter at step 214 new estimates of exposure time (E) and brightness (B) are derived, based on the knowledge of the extreme optical density (OD) values in the scanned area. The system looks for the right combination of exposure time E and brightness level B, where the distance between the corresponding points of two G(E,B) surfaces of these two (OD) values is maximum and where the scanner does not produce saturation effects. At step 216, the system determines whether the current brightness range is better than the previous one. If so, another scan of the mammogram is performed at step 208 with the new values of (E) and (B) derived at step 214. Thereafter, at step 210, the new brightness range is measured based on the maximum and minimum grey levels obtained by the scan and new estimates of (E) and (B) are obtained at steps 212 and 214. The system stops the repetition of the scanning process after a predetermined number of scans. In the preferred embodiment, the system repeats the process for five times. However, the system can repeat the scanning and optimization process until no improvement in the brightness range can be achieved. At step 218, the digital image is stored in memory 18 with the optimum brightness range obtained based on the best values of the exposure time (E) and the brightness (B) of the scanning device 10. The system ends the scanning process at step 220.

Once the system stores the optimum scanned image of an X-ray or the mammogram, interactive enhancement of digital mammography images can be performed in real-time both in grey levels and in pseudo color display.

GREY SCALE STRETCHING

In order to diagnose areas of an X-ray image or mammogram effectively, the digital image from the scanning device must exhibit a high contrast. In order to enhance the contrast in a region of interest, the grey level distribution of the digital image generated by the scanning device is optimally converted to a new grey level distribution with a better contrast in the region. The conversion yields a new image having pixels with new grey levels. This conversion is referred to in the art as tone-scale transformation or grey scale stretching.

According to one known method for grey scale stretching, it is assumed that all the necessary grey level information obtained as the result of a scan, is contained between two specific darkest and brightest grey levels within a predetermined interval. As a result of this assumption, a prior art conversion curve has the shape shown in FIG. 3A. The X axis in FIG. 3A defines the grey level values of the pixels of the digital image of the scanning device, and the Y axis defines the new grey levels of pixels of a converted new image with enhanced pixel contrast in the region of interest. As demonstrated by FIG. 3A, all grey levels outside the stretching interval are discarded in the new image because their new value after conversion is zero or 255. In the medical context, in general and for mammographic analysis in particular, the details of grey levels above and below the stretching interval cannot be neglected. Therefore, according to the present invention, a different conversion curve has been developed.

Referring now to FIGS. 3B through 3D, an S-shaped grey scale conversion curve 350 for analyzing mammogram and other X-ray images has been illustrated. The use of the S-shaped grey scale conversion curve 350 prevents the loss of information at the regions outside the two specific darkest and brightest grey levels within a predetermined interval as illustrated in FIGS. 3B-3D and provides an optimum contrast for pixels present in the region of interest. Subsequently, grey scale conversion curve 350 defines a Look Up Table which converts grey level values of the scanned image into new grey level values for a converted image with enhanced contrast in the region of interest.

Curve 350 is derived from two separate curves 352 and 354 connected together at point 356 whose X coordinate is referred to as the center of grey scale conversion curve and its Y coordinate is 127 on the new grey level scale. The center of the grey scale conversion curve is a grey level value i corresponding to the scanned image for which curves 352 and 354 convert the grey level value i to grey level value 127 on the new scale. The slope of curves 352 and 354 at the center of the grey scale conversion curve are equal to provide a smooth connection between the two curves.

The user controls the enhancement effects in real time by varying the center of the grey scale conversion curve and the slope of the two curves 352 and 354. A smaller slope at the center of grey scale conversion curve, enhances the contrast of a wider range of grey levels contained in the region of interest. Conversely, a larger slope at the center of grey scale conversion curve enhances the contrast of a narrower range of grey levels contained in the region of interest. In effect, by varying the slope at the center, it is possible to control the contrast in the new converted image.

It is also possible to control the brightness in the new converted image. For example, if the region of interest appears too bright, the center of the stretched interval is moved to the right of the curve and vice-versa. As illustrated in FIG. 3D, when the center is moved to the right, more and more grey levels, which originally had a high value, get new, lower grey level values. This makes the region of interest look darker. Conversely, as illustrated in FIG. 3B, when the center is moved to the left, more and more grey levels, which originally had a low value, get new, higher grey level values. This makes the region of interest look brighter.

The novel process of deriving the conversion curve 350 is now described in more detail. Curve 352 is an exponential curve defined as

    (Y.sub.e (i)=a*(e.sup.bi -1))

The curve Y_(e) (i) is a portion of an exponential function from i=0 to i=center of grey scale conversion curve. The boundary conditions for Y_(e) (i) are

    Y.sub.e (0)=0; Y.sub.e (center)=127; d(Y.sub.e (center))/di=K

where

K is the value of the slope of curve 352 at center Y_(e) (center), and is a desired value controlled to vary the range of grey levels with enhanced contrast. The lower limit for K is "1" for which no visual effect exists. The upper limit for K is very high, close to infinity, for which the conversion yields a digital image with a very high contrast within a very narrow range. The parameter "b" rescales Y_(e) on the horizontal axis to match the interval of "i" values from 0 to the center. Parameter "a" rescales Y_(e) on the vertical axis between 0 and 127.

Curve 354 is a logarithmic curve defined as:

    Y.sub.l (i)=255-c*(e.sup.d(255-i) -1)

The boundary conditions for Y_(l) (i) are as follows:

    Y.sub.l (center)=127; Y.sub.l (255)=255; d(Y.sub.l (center))/di=K

where K is the value of the slope of curve 354 at Y_(l) (center), which is equal to the value of the slope for curve 352 at Y_(e) (center). The lower limit for K is "1" for which no visual effect exists. The upper limit of K is very high, close to infinity, for which the conversion yields a digital image with a very high contrast within a very narrow range.

During the operation of the system, a user may select the region of interest by pointing device 8 and keyboard 6, and then activate the grey scale stretching function of the system. Microcomputer 12, prepares an initial conversion table according to curve 350 of FIG. 3C, by automatically selecting a center and a slope for conversion curve 350. Thereafter, the user may change the conversion curve by selecting a new center and slope depending on the image characteristics in the region of interest, based upon the process described above.

In order to determine the initial conversion curve 350, when the grey scale stretching function is first activated, microcomputer 12 generates the histogram of grey levels in the region of interest. The system selects two grey level values g₁ and g₂ so that 10% of the pixels in the region of interest have original grey level values below g₁ and 10% of the pixels in the region of interest have original grey levels above g₂. The parameters "center" and "slope" which determine the new grey scale, are chosen in order to allocate 80% of the new grey levels scale to the original grey level values between g₁ and g₂. Thereafter, the curve can be changed interactively by keyboard 6 or pointing device 8.

The pointing device 8 controls the contrast and brightness of the new converted image by moving vertically and horizontally. The coordinates of the pointing device are defined as Mx and My, where: 1<Mx<254, and 0<My<253. The value of Mx denotes the desired value for the center of the stretching interval and the value of My denotes the desired slope. The slope is derived from:

    slope=tg(π/4+My*π/(4*270))=K

The brightness of the new converted image varies by controlling the value of the center. Similarly, the contrast in the new converted image varies by controlling the value of the slope.

The grey scale stretching process is entirely controlled by the user and as such it enables the concentration on specific details by enhancing their contrast, as can be clearly seen in FIGS. 3E, 3F and 3G comparing the actual images obtained from a single mammogram, when using different portions of the curve 350.

Another feature of the present invention is color-grey scale stretching based on the grey scale stretching discussed above with the use of RGB components for obtaining pseudo color display. The grey levels of the original image are thus converted in such a way that white, which means high grey level, remains white, and black, which means low grey level, remains black. All the remaining grey levels between white and black are converted into pixels with different colors according to combination of RGB components. Pixels with lowest grey level after black, become green. As the value of grey levels increase the colors change to blue, violet, red, orange, yellow and finally white. Red, orange and yellow are defined as hot colors, and green, blue and violet are defined as cold colors. Thus pixels with low grey level value turn into cold colors and pixels with high grey level value turn into hot colors.

The RGB coloring is achieved through the use of a look up table, which allows the conversion of grey levels into different shades of color, based on the grey level value of each pixel.

LOGARITHMIC VARIABLE HISTOGRAM EQUALIZATION

Another method used for improving the visual contrast of a digitized image is histogram equalization. The prior art histogram equalization method, known as uniform histogram equalization, improves the visual contrast by creating a transformed image with a flat histogram. Histogram equalization can be accomplished by using a transformation look-up table applied to each pixel in the digitized image. It has been found that the transformation look-up table, which yields a transformed image with a flat histogram, is the scaled version of the cumulative histogram of the original digital image. The cumulative histogram is a graph of the sums of numbers of pixels, along the vertical axis, having grey level values equal to or less than the grey level values along the horizontal axis of the graph.

The histogram equalization method described above may not be appropriate for enhancing images on a mammogram where in some instances the purpose is to detect and accentuate bright spots in regions of interest (ROI) in the digital image against the background. Typically, these bright spots may correspond to regions of micro-calcification. Therefore it is desired to have a transformed image with a histogram that has a relatively large number of pixels with low grey level values, so that the remaining pixels with higher grey level values appear with a better contrast. In order to achieve a transformed image with such a desired histogram, the system implements a logarithmic histogram equalization as described hereinafter with reference to FIG. 4A.

According to one aspect of the present invention, the system creates a new grey scale based on a variable logarithmic histogram equalization in the region of interest ("ROI") of a digital image. After the equalization process, the transformed image will have a cumulative histogram CH(x), that closely approximates one of the many exemplary cumulative histogram curves CH(x) as illustrated by curves 310 of FIG. 4A. The cumulative logarithmic histograms are defined as: ##EQU1## where "x" is a grey level value between 0 and 255, "q" is the parameter of each curve 310, which defines the degree of concavity of the graph, CH(255) is the total amount of pixels in the region of interest, after equalization CH(0) is the number of pixels with grey level value zero after equalization and Ln is natural logarithm as illustrated in FIG. 4A. Curves 310 take a different shape as the value of q varies.

The system constructs a look-up table which transforms the grey level values of the digital image in the region of interest into new grey level values with a specified cumulative logarithmic histogram according to equation (1) by utilizing an iterative process. Thus, the system iteratively calculates a plurality of look-up table transformations. The look-up table transformation that yields a converted new image with a cumulative histogram that most closely approximates the specified cumulative histogram is then selected. Since the cumulative histograms are logarithmic, the look-up table transformation curve is preferably exponential.

In an alternative embodiment, the system constructs a look-up table in accordance with the relationship:

    LUT(x)=e.sup.P -1                                          (2)

where LUT(x) is the look-up table transformation function and, p, a function of q, is defined as ##EQU2## where ch(x) is cumulative histogram of the digital image in the region of interest before transformation and ch(255) is the total number of pixels in the region of interest and ch(.0.) is the number of pixels with a grey level value of zero in the region of interest. Furthermore:

    ch(0)=CH(0) and ch(255)=CH(255)

Thus, the look-up table also varies as a function of q. In one embodiment of the present invention, the user can modify the logarithmic histogram equalization by providing a desired value of q via keyboard 6 or pointing device 8 of FIG. 1. The value of q can vary by moving the pointing device 8 along either a horizontal direction or a vertical direction. For example, if q varies based on the horizontal movement of the pointing device 8, the movement of the pointing device along the X axis is translated to a linear sliding of curve 310 along line 312 of FIG. 4A, by relationship: ##EQU3## where mx is the grey level value corresponding to a given coordinate of the pointing device 8 along the horizontal axis. The value of mx is a function of the coordinates of the pointing device 8 along the horizontal axis and ranges from 0 to 255. The initial logarithmic curve 310 and the corresponding look-up table are determined according to an initial predetermined value for mx. When the system first activates variable logarithmic histogram equalization, it assigns a predetermined reference value to mx regardless of the initial coordinate of the pointing device 8. Thereafter the value of mx increases when pointing device 8 slides to the right and decrease when pointing device 8 slides to the left. In one embodiment, the initial predetermined value for mx is 120.

The logarithmic histogram equalization described above allows the control of the contrast in the region of interest. The brightness adjusts appropriately as different curves 310 are used to obtain a look-up table transformation function. FIGS. 4B, 4C and 4D illustrate the effect on the grey scale transformation by varying the value of q. As seen in FIG. 4C, a moderate logarithmic effect leads to an equal utilization of all grey levels, a result that is similar to a transformation based on uniform equalization. A stronger logarithmic effect will emphasize the brightest details in the region representing micro-calcifications as illustrated by FIG. 4A.

It can be appreciated that rather than calculating the value of q and the look-up table in accordance with the equations described above, it is possible to construct different look-up tables for converting the value of mx into appropriate values of q, p and LUT(x).

SPOT ENHANCEMENT

Another novel feature of the present invention is spot enhancement which is most effective when applied to regions with low contrast and relatively small size. The system checks the grey level difference between each pixel and its neighboring pixels within a region of interest. The system then modifies these differences so that large grey level differences between a pixel and its neighboring pixels are diminished and small grey level differences between a pixel and its neighboring pixels are accentuated. This process leads to an enhancement of "pixel to pixel" contrast in the region of interest defined by the user.

According to one embodiment of the present invention, the spot enhancement process begins at step 400 of FIG. 6A, by filtering the digital image of a region of interest. For each grey level value of a pixel in the digital image the filter provides another grey level value whose magnitude is the average of weighted sum of grey level values of its neighboring pixels. The filtering process constitutes a convolution on the digital images with a convolution mask 440 having 9 cells as illustrated in FIG. 6B. The convolution mask measures the average value of the eight pixels 442 surrounding each pixel 444 in the digital image. Each cell surrounding a pixel has an assigned weight which in this case is the value "1". However, each cell can have other weighted values. At step 402, in FIG. 6A, the process of convolution begins for all pixels in the region of interest.

The outcome of the convolution can be visualized by referring to FIGS. 6C and 6D. FIG. 6C illustrates a table corresponding to an original digital image of the region of interest. Each element 446, 448, 450 and 452 of the table represents grey level values corresponding to the pixels of the original digital image of the region of interest. FIG. 6D illustrates a second table with the outcome of the convolution. Each element 446', 448', 450' and 452' of the second table represents the new grey level values, each new grey level value being the average of grey level values of eight pixels surrounding a pixel with grey level values illustrated in FIG. 6C.

Returning now to FIG. 6A, at step 404, the system stores the filtered table of FIG. 6D with all the grey level values derived by the convolution. The filtered table referred to in FIGS. 6A and 6D is defined as the convoluted region of interest or CROI. At step 406, the system creates a contrast table p(f_(i),g_(i)) where f_(i) is the grey level value of pixels in the original digital image and g_(i) is the grey level value of the corresponding pixel in the convoluted region of interest CROI. The difference in grey level value between each pair represents the amount of contrast between each pixel and its neighboring pixels.

At step 408 the system begins the process of creating a look up table by obtaining the first pair in the contrast table. At step 410 the system gets the next pair in the contrast table and compares it with the first pair. For purposes of illustration, the first pair is defined as p1(f1,g1) where f1 is the grey level value of a pixel in the digital image and g1 is the average grey level value of its surrounding eight pixels. For example, f1 may be element 446 in FIG. 6C and g1 may be element 446' in FIG. 6D. The second pair is defined as p2(f2,g2) where f2 is the grey level value of another pixel in the digital image and g2 is the average grey level value of its surrounding eight pixels. For example, f2 may be element 448 in FIG. 6C and g2 may be element 448' in FIG. 6D.

At step 412 the system determines whether there is an overlap between the first pair and the next pair in the table by comparing the f and g values of each pair with each other. An overlap constitutes the situation when f and/or g values of one pair are between the f and g values of the other pair. If there is an overlap, the system goes to step 416, eliminates the two pairs and creates a new reduced pair which substitutes the eliminated pairs.

The criteria for creating the new reduced pair is described hereinafter. Assuming that p1 and p2 overlap, the process looks at the four values in the two pairs and selects the middle two numbers as the values for the reduced new pair. For example, if f1=110, g1=180, f2=80 and g2=130, then the middle two numbers are 110 and 130. The reduced new pair gets these two numbers. The system then makes the reduced new pair as the first pair of the contrast table. Furthermore, in the case where the values of one pair are included within the values of the other pair, the smaller pair is kept as the first pair and the larger pair is removed. At step 418 if there are more pairs remaining for further comparison the system goes to step 410 until all pairs in the contrast table have been compared. The system then goes to step 420.

If at step 412 the system determines that there is no overlap between the first pair and the next pair, the system checks for more pairs at step 414 and if there are no more pairs remaining in the contrast table the system goes to step 420. If however, there are more pairs remaining in the contrast table, the system goes back to step 410 for further comparisons until all pairs in the contrast table have been compared with the first pair.

At step 420, the system stores the first pair in an input pair table and eliminates that first pair from the contrast table. The system then takes the next pair in the contrast table and makes that pair the first pair of the contrast table. At step 422, if there are more pairs remaining in the contrast table, the system goes to step 408 and begins the process again.

If however all possible reductions have been made, the input pair table is complete and the system goes to step 424 to make a look up table. FIG. 6E illustrates a look up table 462 which is a step function. The input of the look up table is the grey levels of the digital image of a region of interest and the output is the converted grey levels creating an enhanced image. In order to derive the incremental steps 460 along the i' axis of the table, the system counts the number of the pairs in the input pair table and divides 255 by the number of the pairs to get a value "dl." For the intervals defined by each pair, the table converts the grey level values within that interval into new values, which are linearly distributed within the increment "dl" along the i' axis. Grey level values between two pairs are converted into a fixed value. FIG. 6E illustrates an example of the intervals 464, 466, 468, 470 and 472, within which grey level conversions occur. As can be seen, a large grey level difference between a pixel and its neighboring pixels as illustrated by pair 470 is diminished and a small grey level difference between a pixel and its neighboring pixel as illustrated by pair 466 is accentuated. Remarkably, the overall result is an image with an improved contrast.

Magnification

In addition to the above-described optional features, the system also provides the option of what is called in the art of photography "zooming". The zooming may be effected with either a circular or square or any other shape of a predetermined area on the image, as seen in FIGS. 5A, 5B and 5C. The zooming process has many features and advantages and can be advantageously utilized as follows: a) The dimension of the zoomed area can be changed interactively in real time; b) the location of the zoomed area on the image can be changed interactively in real time; c) the magnification factor of the zoomed area can be changed interactively in a continuous manner, i.e., without abrupt changes, in real time, as can readily be seen in FIGS. 5A to 5C; d) if the image is presently displayed on the monitor in a reduced form (i.e., lower resolution), the zooming processes uses the original image in its highest available resolution and not the actual image displayed on the monitor; and e) when the magnification factor is not an integer number, the grey level assigned to each pixel is a result of the interpolation of the grey levels of all the surrounding original pixels. This feature enables the preservation of the exact proportions among the elements in the zoomed area. Additionally, it attenuates the digitization effect in case of high magnification factor.

The system performs the zooming process by displaying each pixel in the original image by a larger number of pixels. FIGS. 5D and 5E illustrate an example when the system magnifies the image by a factor of 2. Each pixel in the original image 5D is represented by its grey level value. Circles 380 in each pixel cell 382 in FIG. 5D represent the size of each pixel in the original image.

Pixels in the enlarged image 5E are also represented by their grey level values. As illustrated, each pixel in the original image 5D is displayed by four pixels in the enlarged image in FIG. 5E. Each of the four pixels in FIG. 5E has the same grey level value as the original pixel in FIG. 5D. Circles 380' represent the size of each pixel in the enlarged image.

When the zooming factor is not an integer, the grey level of pixels in the magnified image are derived by interpolation. FIG. 5F illustrates an image which has been enlarged by a factor of 1.5. Each pixel occupying a cell in the original image requires 1.5 cells in the magnified image. The grey level value of pixels occupying the additional cells 382 is equal to the average value of the grey levels in the neighboring cells. Circles 380" represent the size of each pixel in the enlarged image.

SEGMENTATION AND EVALUATION OF MAMMOGRAPHIC MICRO-CALCIFICATIONS

An additional feature of the present invention is the ability to determine the structural features of micro-calcifications and evaluate those features to assist in the diagnosis of malignant micro-calcifications.

The first step in diagnosing micro-calcifications is to find an indication of their presence on the mammogram. Because micro-calcifications have a lower optical density than the ordinary tissue, they appear on the mammogram as small regions that are brighter than the surrounding region. Many times these small regions are located closely together and form a cluster.

In many occasions, certain structural characteristics of individual micro-calcifications and micro-calcification clusters can provide valuable diagnostic information. For example, micro-calcifications that appear much brighter than the surrounding region or have a smooth perimeter, tend to be benign. Other micro-calcifications that appear to have brightness very close to the surrounding region or have highly irregular shape tend to be malignant. Thus, it is very difficult to identify malignant calcifications. Further, since not every bright detail on the mammogram represents a micro-calcification, a radiologist's experienced eye is required to ascertain that a suspicious spot corresponds to a micro-calcification. Based on the structural characteristics, the radiologist determines whether the micro-calcifications are malignant.

Many times, the difference in grey level between a micro-calcification and the surrounding region is not discernable by human eyes. The radiologist, by applying the image enhancement features described before, including grey scale stretching, spot contrast enhancement, logarithmic grey scale equalization and magnification, views the digital image. The image exhibits a better contrast as a result of these enhancement features. This assists the radiologist to identify suspicious areas on the mammogram image that may contain micro-calcifications.

As an additional feature to identify micro-calcifications, the system allows the radiologist to determine the grey level value of a given pixel. This allows the radiologist to compare quantitatively the densities of two areas, to identify areas in increased optical density that may not be apparent due to surrounding high density tissue.

Another feature that assists the radiologist to identify micro-calcifications is a display of grey levels along a given line or the image. The radiologist by using the pointing device 8 of FIG. 1, defines a line on the image. The grey level value of all the pixels along the defined line is then displayed on the screen. This allows the radiologist to compare quantitatively the densities of the points along the defined line to identify points with increased optical density that may not be apparent due to the surrounding high density tissue.

The radiologist, by using the pointing device 8, causes the system to draw a frame on a portion of the digital image that includes the suspicious area, and is referred to as the region of interest ROI. The system then engages in processing the image defined by the ROI. In order to eliminate the effect of the background image on the appearance of the spots that represent a micro-calcification, the system first applies a background suppression routine in the whole digital image. Based on the background suppressed images, the system allows the operator to define the micro-calcifications interactively, in real time, by trimming a grey level threshold. All the pixels above the grey level threshold are highlighted preferably by color as micro-calcifications. By lowering the threshold, more micro-calcifications can be viewed. Conversely by raising the threshold, less micro-calcifications can be viewed.

Once the threshold trimming method localizes the micro-calcifications, the system performs a novel "region growing" process to estimate the contour of the micro-calcifications and produce an image having spots representing micro-calcifications which closely approximate the contour of the actual micro-calcifications in the breast tissue. Thereafter, the system calculates various structural parameters associated with individual micro-calcifications and micro-calcification clusters. By comparing the calculated parameters with a set of statistically significant parameters that have been previously derived, a physician can ascertain malignancy of the micro-calcifications.

In the alternative, the system automatically analyzes the digital image of a mammogram and determines the presence of micro-calcifications. The system then applies the "region growing" process to define the contour of the micro-calcifications and thereafter calculates various structural parameters associated with individual micro-calcifications and micro-calcification clusters. The calculated parameters are then compared with a set of statistically significant numbers to determine whether a particular micro-calcification or a micro-calcification cluster, identified by the system, is malignant or benign.

The process of identifying and quantifying micro-calcifications is described in more detail hereinafter. As illustrated by FIGS. 7A and 7B, the system begins the segmentation and evaluation of micro-calcifications at step 500 by first performing a background suppression routine to the digital image of the mammogram. Since the micro-calcifications appear against a non-uniform background in the image, the system first subtracts the background information from the original digital image. This is accomplished by filtering the digital image using a convolution mask. The convolution mask preferably is a square and symmetric matrix filled with "1"s.

The size of the mask is obtained, in pixels, in accordance with the scanning resolution and the maximum average size of micro-calcifications which is about 0.45 mm, following the relationship ##EQU4## Where X is the size of the convolution mask for the background suppression routine, in pixels, and DPI is the resolution of the scanning process in dots per inch. This number is divided by 25.4 mm/inch to yield the resolution in dots per millimeter. The 0.45 mm represents the maximum average size of a micro-calcification region. Because the resulting filtered image could be noisy, the system preferably applies an additional low-pass filtering, after background suppression, using a convolution 3×3 mask.

After obtaining a background suppressed image, the system begins the process of identifying micro-calcifications in a region of interest (ROI) in the image. At step 502 the system looks for micro-calcifications (MC) on the mammogram which contain some connective set of micro-calcification pixels according to the condition: ##EQU5## Where GL is the grey level of a pixel or the average grey level for a set of pixels, MC represents a micro-calcification having a connective set of pixels identified as micro-calcification pixels with grey levels above a given grey level threshold M and a diameter between 0.05 mm to 0.5 mm. R is a region on the mammogram that contains micro-calcifications MC, and K is a given positive value. The diameter of a micro-calcification MC is in the range of 0.05 to 0.5 mm.

Once micro-calcifications MC in regions R have been identified, they can be visualized on the system's screen preferably by a given color such as blue or red. The micro-calcifications MC appear as bright spots in the region of interest.

The system also quantifies the micro-calcifications MC by estimating their contour and by calculating certain relevant parameters associated with each micro-calcification or micro-calcification clusters. A novel aggregation technique, or "region growing," is used for this purpose. First, an initial subset of micro-calcification pixels with grey level values exceeding a given number is selected and defined as current set of calcium pixels or "current calcium set" (CCS). The CCS is the subset of micro-calcification pixels which are considered to belong to a micro-calcification MC at a certain step of the process. At step 504, for each micro-calcification, the brightest pixel is selected, together with its eight nearest neighbors, to form the "growth initiator" (GI)region. The GI region is the place from which the pixel aggregation starts. It can be appreciated that the growth initiator region can have various sizes.

The system by applying the region growing method of the present invention considers and analyzes a certain number of pixel sets as defined hereinafter. One set that the system considers is the CCS described above. The set of other pixels adjacent to the current calcium set CCS is referred to as the adjacent set (AS). The AS pixels form the external boundaries of the current calcium set CCS. The system then analyzes each pixel in the adjacent set (AS). Each analyzed pixel is referred to as the pixel under consideration or (PUC). Another subset that is considered by the system is the set that includes the pixel under consideration PUC and its nearest eight neighbors, referred to as S9. Another subset is the set that only includes the nearest eight neighbors of the pixel under consideration PUC, referred to as S8. Finally the number of pixels in S8 that do not belong to the current calcium set CCS is referred to as No (number of outer pixels), and the number of pixels in S8 that belong to the current calcium set CCS is referred to as Ni (number of inner pixels), such that No+Ni=8.

The region growing method is now explained in further detail. At step 506, the system identifies an adjacent set (AS) of all pixels that are adjacent to the current set of calcium pixels (CCS). The system then considers each pixel in the adjacent set (AS) to decide whether it should be added to the current set of calcium pixels (CCS). At step 508 each pixel in the adjacent set (AS) is retrieved for consideration. Depending on a certain criteria as illustrated in steps 510 through 578, the system determines whether or not the retrieved pixel under consideration (PUC) should be aggregated into the current calcium set (CCS). Once all the pixels in the adjacent set have been considered, the system based on the aggregated pixels defines a new current calcium set (CCS).

As illustrated by step 580, this process is repeated until the final set of current calcium pixels (CCS) is the same as the previous set of the current calcium pixels (CCS). This indicates that no pixel in the adjacent set (AS) can be added to the CCS and that the micro-calcification (MC) cannot grow any further. The system repeats this process for each micro-calcification MC. The resulting final "current calcium sets" (CCS) define contours that closely approximate the actual contours of micro-calcifications in the breast tissue.

In order to determine whether a pixel under consideration PUC should be added to the current calcium set, the system applies four separate rules to each PUC. At step 510, rule 1 is applied. If No<3 (where No is the number of S8 pixels not belonging to the current calcium set CCS), the pixel under consideration is within the "cavern" and is considered as an aberration in the image. The system at step 512 adds the pixel under consideration PUC to the current calcium set CCS without any other consideration. FIG. 7C illustrates a situation where rule 1 is satisfied. Pixels 600 represented as filled dark blocks belong to the current calcium set, and No, the number of pixels that do not belong to the CCS, is equal to 2.

At step 514, the system applies rule 2. If No>5 (where No is the number of S8 pixels not belonging to the current calcium set (CCS)), the pixel under consideration PUC is an asperity and is considered as border noise. The system at step 516 determines that the pixel under consideration PUC is not to be added to the current calcium set (CCS). FIG. 7D illustrates a situation where rule 2 is satisfied. Pixels 600 represented as filled dark blocks belong to the current calcium set, and No, the number of pixels that do not belong to the CCS, is equal to 6.

Rules 1 and 2 described in connection with steps 510 through 516 are based on the morphology of the micro-calcification pixels. If rules 1 and 2 do not apply, the system then goes to step 518 to apply rule 3 which is based on the grey level value of the pixel under consideration GL(PUC). This rule applies if 2<No<6 (where No is the number of S8 pixels not belonging to the current calcium set (CCS)). At step 520 the system determines whether GL(PUC) is less than Tmin. If so, at step 522, the system determines that the pixel under consideration PUC is not to be added to the current calcium set. Tmin is a predetermined threshold, which according to the preferred embodiment of the present invention has two values as follows:

if GL(h)>15 then Tmin=9

if GL(h)<16 then Tmin=4

where GL(h) is the grey level value of the brightest pixel in the current calcium set (CCS).

At step 524, the system determines whether the grey level value of the pixel under consideration GL(PUC) is larger than Tmax. If so, at step 526, the system adds the current pixel under consideration PUC to the current calcium set CCS. Tmax is a predetermined threshold, which according to the preferred embodiment of the present invention is 27. If, however, none of the rules 1 through 3 apply, the system goes to step 528 to measure Gli and Glo values. GLi is the average grey level value of the inner pixels Ni (where Ni is the number of S8 pixels that belong to the current calcium set), and GLo is the average grey level value of the outer pixels No (where No is the number of S8 pixels not belonging to the current calcium set CCS).

The system at steps 530 through 578 considers six different possible cases depending on the relationship of the three parameters GLi, GLo and GL(PUC) to one another. The first case begins at step 530 at which point the system determines whether GL(PUC)<GLo<GLi. If so at step 532 the system determines that the current pixel under consideration PUC is not to be added to currens calcium set CCS.

The second case begins at step 534 at which point the system determines whether GL(PUC)<GLi<GLo. If so at step 536, the system goes to process A. At step 554, the system begins the process A by going to step 556 to determine whether ##EQU6## where TR is a threshold ratio constant and represents the value of the ratio of two grey levels below which the two grey levels cannot be considered close to each other. In the preferred embodiment of the present invention TR is 0.8. If at step 556 the system determines that the grey level value of the current pixel under consideration GL(PUC) is not close to GLi (the average grey level value of the inner pixel Ni), then it goes to step 564 where it determines that the current pixel under consideration is not to be added to the current calcium set CCS. Otherwise, GL(PUC) is considered close enough to GLi and the system goes to step 558 to determine whether

    GLi>T1

where T1 is a given threshold value. In the preferred embodiment the value of T1 depends on the grey level value of the brightest pixel in the current calcium set (CCS) as follows:

If GL(h)>15 then T1=11

If GL(h)<16 then T1=5

Therefore, if GLi>T1 then the system goes to step 560 to add the current pixel under consideration to the current calcium set. Otherwise the system goes to step 562 and the current pixel under consideration PUC is not added to the current calcium set CCS.

The third case occurs at step 538 when the system determines whether GLi<GLo<GL(PUC). If so, the system at step 540 adds the current pixel under consideration PUC to the current calcium set CCS. Otherwise, the fourth case begins at step 542, where the system determines whether GLi<GL(PUC)<GLo. If so, the system at step 544 adds the current pixel under consideration PUC to the current calcium set CCS. Otherwise, the fifth case begins at step 546, where the system determines whether GLO<GL(PUC)<GLi. If so, the system goes to step 548 to begin the process B. Process B begins at step 566. By going to step 568 the system determines whether: ##EQU7## where TR is a threshold ratio constant and represents the value of the ratio of two grey levels below which the two grey levels cannot be considered close to each other. In the preferred embodiment of the present invention TR is 0.8. If at step 568 the system determines that the grey level value of the current pixel under consideration GL(PUC) is not close to GLi (the average grey level value of the inner pixel Ni), then it goes to step 576 where it determines that the current pixel under consideration is not to be added to the current calcium set CCS. Otherwise, GL(PUC) is considered close enough to GLi and the system goes to step 570 to determine whether:

    GLi>T2

where T2 is a given threshold value. In the preferred embodiment the value of T2 depends on the grey level value of the brightest pixel in the current calcium set (CCS) as follows:

If GL(h)>15 then T2=16

If GL(h)<16 then T2=8

Therefore, if GLi>T2 then the system goes to step 572 to add the current pixel under consideration (PUC) to the current calcium set (CCS). Otherwise the system goes to step 574 and the current pixel under consideration PUC is not added to the current calcium set CCS.

Finally, the sixth case occurs at step 550 where the system determines whether GLo<GLi<GL(PUC). If so the system at step 552 adds the current pixel under consideration PUC to the current calcium set CCS. Otherwise, the current pixel under consideration (PUC) is not added to the current calcium set CCS. After considering all the pixels in the adjacent set as described above, the process yields a new current calcium set and a new adjacent set AS. The system goes back to step 508 and repeats he process until no pixel from adjacent set AS can be added to the current calcium set. Once it is determined that the CCS cannot grow any further, the system ends at step 582.

Once the contour of each micro-calcification MC in the region of interest ROI is determined, the system calculates six parameters associated with each micro-calcification MC. Furthermore, the system calculates other parameters associated with a micro-calcification cluster within the region of interest.

The six parameters that characterize each individual micro-calcification are: (1) brightness; (2) area; (3) length; (4) shape factor according to a first alternative referred to as SF1; (5) shape factor according to a second alternative referred to as SF2; and (6) distance to the nearest neighboring micro-calcification MC. For each parameter, the system calculates the average value over all the micro-calcifications MC in the region of interest based on standard arithmetic methods. Further, the system calculates the average value by measuring the mean of the two extreme values in the set. In addition, the system measures the standard deviation of each parameter based on known statistical methods. Finally, the system measures the standard deviation based on the difference between the two extreme values in the set divided by 2.

The first parameter, the brightness of each micro-calcification MC is the average value of grey level values of all pixels in the micro-calcification MC. The second parameter, the area of each micro-calcification MC is the number of pixels in the region, defined in square millimeters.

The third parameter, the length of the micro-calcification MC is the maximum distance between two pixels in the region, expressed in millimeters. The length between two pixels is obtained by the relationship: ##EQU8## where L is the length between two pixels in millimeters, N is the number of pixels representing the Euclidian distance between the two pixels and DPI is the scanning resolution in dots per inch.

The fourth parameter, the shape factor (SF1) according to the first alternative is obtained by the relationship: ##EQU9## where P is the perimeter of the micro-calcification MC and S is the area of the MC.

The fifth parameter, the shape factor (SF2) according to the second alternative is obtained by the relationship: ##EQU10## where Reff is the effective radius of the micro-calcification MC and S is the area. In order to obtain the effective radius, first the system derives the coordinates of the pixel which constitutes the center of mass of the micro-calcification MC. The center of mass coordinates Xc and Yc are respectively the average of the x and y coordinates of all the pixels in the micro-calcification MC. The effective radius is calculated by the relationship: ##EQU11## where Ri is the radius vector (Xi, Yi) of each pixel in the micro-calcification and Rc is the radius vector (Xc, Yc) of the center of mass of the micro-calcification and N is the total number of pixels in the micro-calcification.

Finally, the sixth parameter, the distance to the nearest neighboring micro-calcification, is the smallest distance from a given center of mass of a micro-calcification to the center of mass of other micro-calcifications in a cluster.

Table 1 illustrates the parameters describing the micro-calcifications in the region R as described above. The letter "E" in the table denotes the alternative calculation method of the average and the standard deviation as described above. These parameters assist in the diagnosis of micro-calcifications observed on a mammogram. The value of each parameter is compared, either manually or automatically by the system, with statistically derived values to determine whether the observed micro-calcifications are malignant or benign.

                  TABLE 1                                                          ______________________________________                                         PARAMETERS FOR CHARACTERIZING MICRO-CALCIFICATION                              CLUSTERS IN MAMMOGRAMS                                                         These characteristics are individually calculated for each micro-              calcification in the cluster, and then averaged over the whole cluster         Average Brightness                                                                              Average of Shape Factor 1                                     Deviation of Brightness                                                                         Deviation of Shape Factor 1                                   Average Brightness (E)                                                                          Average of Shape Factor 1 (E)                                 Deviation of Brightness (E)                                                                     Deviation of Shape Factor 1 (E)                               Average Area     Average of Shape Factor 2                                     Deviation of Area                                                                               Deviation of Shape Factor 2                                   Average Area (E) Average of Shape Factor 2 (E)                                 Deviation of Area (E)                                                                           Deviation of Shape Factor 2 (E)                               Average Length   Average of Distance to the Nearest                                             Neighbor                                                      Deviation of Length                                                                             Deviation of Distance to the Nearest                                           Neighbor                                                      Average Length (E)                                                                              Average Distance to the Nearest                                                Neighbor (E)                                                  Deviation of Length (E)                                                                         Deviation of Distance to the Nearest                                           Neighbor (E)                                                  ______________________________________                                    

The next group of parameters are associated with the structure of a micro-calcification cluster. These parameters are based on adjacent line segments, within the cluster, that connect pairs of micro-calcifications, which according to a predetermined criteria is considered "adjacent" to each other.

The system uses three methods to identify adjacent pair of micro-calcifications in the cluster. All the pairs in the cluster are examined, and the adjacent ones are selected. The system connects all the adjacent micro-calcifications by connecting lines to form a desired set of adjacent line segments. The system measures three parameters corresponding to said line segments, which characterize the structure of micro-calcification clusters. These parameters are: (1) the length of each line segment; (2) the number of neighbors of each micro-calcification region; and (3) the density of the micro-calcification cluster.

The first method for identifying adjacent micro-calcification is based on a triangulation technique known as the Gabriel method. According to this method, the system considers all possible pairs of micro-calcifications in a cluster. For each pair, the system connects a line between the micro-calcification MC's constituting a pair. A circle whose diameter is the same as the connecting line and whose center coincides with the middle of the line is drawn. If the circle does not contain any micro-calcification, then the two micro-calcifications in the cluster are considered adjacent.

The second method for identifying adjacent micro-calcifications is based on another triangulation method known as the Sphere of Influence Graph (SIG). This method utilizes the value of the distance to the nearest neighboring micro-calcification which was defined above as the sixth parameter identifying a micro-calcification. The system draws a circle around each micro-calcification having a radius equal to the distance to the nearest neighboring micro-calcification. Two micro-calcifications are considered adjacent by the SIG method, if the corresponding circles intersect.

The third method for identifying adjacent micro-calcification is based on another triangulation method known as the Digital Delaunay Triangulation method. A process commonly known as "zone of influence" is applied to the cluster to provide a zone of influence for each micro-calcification.

The system labels each micro-calcification in the cluster by a number. All pixels in each micro-calcification receive the same number. Pixels in the image that do not belong to a micro-calcification MC are labelled ".0.."Thereafter, each pixel in the region of interest is processed according to a certain criteria as described hereinafter.

First, if a pixel has any label except ".0.," its label remains unchanged.

Second, if a pixel has a label ".0." and within its surrounding eight pixels or 3×3 vicinity, there are pixels which have non-zero labels "L", the pixel is also labeled "L."Third, if a pixel has a label ".0." and within its surrounding eight pixels or 3×3 vicinity, there exists two pixels which have different non-zero labels, the pixel remains unchanged. This means that the pixel is located at the boundary of two zones of influence.

The system applies the above three steps to the image repeatedly until no more changes are detected. Two micro-calcifications MC are considered adjacent, if there exists a pixel, which, within its surrounding eight pixels or 3×3 vicinity, there are pixels which have the labels of the two micro-calcifications.

After the system identifies all adjacent micro-calcifications based on the above three methods, it generates a set of line segments that connect the adjacent pairs. The system draws the line segments on a portion of digital image for viewing "adjacent" micro-calcifications on the screen display. Based on the generated set of line segments, the system calculates three parameters as follows: (1) the length of line segment; (2) the number of neighbors of each micro-calcification; and (3) the density of the cluster.

For the first parameter--the length of the line segment--the system calculates the length of the line segments that connect two adjacent micro-calcification regions as identified by each of the three methods described above for identifying adjacent micro-calcifications MC. The system then calculates the average and standard deviation of the length of all line segments in the region of interest. The average value of the line segments is estimated by known arithmetic methods. In addition the average value of the line segments is also estimated based on the mean value of the two extreme values in the set. The standard deviation of the line segments is estimated by known arithmetic methods. In addition the standard deviation of the line segments is also estimated based on the difference between the two extreme values in the set divided by two. Altogether 12 parameters based on the length of the line segments are calculated.

Next the system obtains two parameters associated with the number of neighbors of each micro-calcification in the cluster. The number of neighbors is defined as the number of micro-calcifications that are considered adjacent to a given micro-calcification under each of the three methods described above. The two associated parameters are the average number of neighbors calculated by standard arithmetic methods and standard deviation calculated by known statistical methods. Altogether 6 parameters based on the number of neighbors are calculated.

Finally, the system obtains a value representing the density of the cluster, which is the average number of micro-calcifications MC's per unit area of a cluster. Because the Sphere of Influence Graph (SIG) method described above, is closely related to the visual perception of the interconnections between micro-calcification regions, the parameters calculated by the SIG method are used to calculate the density of a cluster. Thus, the density of a cluster is derived by the relationship: ##EQU12## where N is the average number of neighbors obtained based on SIG method, and L is the average length of line segments obtained based on the SIG method.

Table 2 illustrates a list of the parameters that characterize the structure of micro-calcification clusters derived by the three methods known as: (1) Gabriel; (2) Sphere of Influence Graph and; (3) Delaunay. The letter "E" denotes the alternative calculation methods for finding the average and the standard deviation. These parameters assist in the diagnosis of micro-calcifications observed on a mammogram. The value for each parameter is compared with statistically derived values to determine whether the observed micro-calcifications are malignant or benign.

                  TABLE 2                                                          ______________________________________                                         STRUCTURE OF THE CALCIFICATION CLUSTER                                         These characteristics are calculated for the cluster as a whole, by            triangulation methods. Three basic methods are used: Sig, Delaunay             and Gabriel.                                                                   Average Distance Between                                                                          Average No. of Neighbors                                    Calcifications (Sig)                                                                              (Delaunay)                                                  Deviation of Distance Between                                                                     Deviation of No. of Neighbors                               Calcifications (Sig)                                                                              (Delaunay)                                                  Average of Distance Between                                                                       Average No. of Neighbors                                    Calcifications (E) (Delaunay) (E)                                              Deviation of Distance Between                                                                     Deviation of No. of Neighbors                               Calcifications (E) (Delaunay) (E)                                              Average No. of Neighbors (Sig)                                                                    Average Distance Between                                                       Calcifications (Gabriel)                                    Deviation of No. of Neighbors (Sig)                                                               Deviation of Distance                                                          Between Calcifications (Gabriel)                            Average No. of Neighbors (Sig) (E)                                                                Average Distance Between                                                       Calcifications (Gabriel) (E)                                Deviation of No. of Neighbors (Sig) (E)                                                           Deviation of Distance Between                                                  Calcifications (Gabriel) (E)                                Average Distance Between                                                                          Deviation of No. of Neighbors                               Calcifications (Delaunay)                                                                         (Gabriel)                                                   Deviation of Distance Between                                                                     Average of No. of Neighbors                                 Calcifications (Delaunay)                                                                         (Gabriel) (E)                                               Average Distance Between                                                                          Deviation of No. of Neighbors                               Calcifications (Delaunay) (E)                                                                     (Gabriel) (E)                                               Deviation of Distance Between                                                                     Spatial Density of Calcifications                           Calcifications (Delaunay) (E)                                                                     Within the Cluster                                          ______________________________________                                    

VISUALIZATION AND QUANTIFICATION OF MASS SPECULATION

In addition to micro-calcification, other breast malignancies have the appearance of a stellate lesion having a distinct central tumor mass and a radiating structure with ill defined borders. The radiating structure consists of spicules which are sharp, dense, fine lines of variable length radiating in all directions either within or outside the central tumor mass. The larger the central tumor mass, the longer the spicules. The tumor mass may appear on the original digital image of the mammogram as an ill defined bright spot with border lines spreading out as illustrated in FIG. 8A. The system provides two different tools to visualize the mass and to quantify the degree of its speculation.

In order to visualize the mass, the system provides a dynamic view of the digital image in color. First, the grey level values are mapped into an RGB space by using a grey level to RGB look-up table. As a result the look-up table yields a different color for each grey level value. The system then applies a moving color enhancement process by gradually changing the brightness of the digital image using the grey scale stretching process described in connection with FIGS. 3A-3D. Each pixel in the digital image acquires a new grey level and therefore a corresponding color based on a conversion curve as illustrated in FIGS. 3A-3D. The color enhancement process begins with a conversion curve with its center disposed to the right of the grey scale. The system gradually moves the center of the conversion curve to the left of the scale. Consequently, the converted images which are displayed on screen display 4 of FIG. 1, first appear in darker colors and as the center of the conversion curve moves to the left of the scale, they appear in brighter colors. The conversion curves have the lowest possible slope to yield images with minimum contrast. The infiltrative effects of the mass can be visualized more clearly because of the dynamic and gradual change of colors in the new images according to the present invention. This allows for a better visual appreciation of mass malignancy.

In order to quantify the degree of speculation, in a separate process, the system identifies all speculation pixels of a digital image and, if a mass exists, it calculates certain parameters that represent the degree of speculation in a tumor mass.

To quantify the degree of speculation of a mass in the image, the center of the speculation (CS) is defined by the operator. In an alternative embodiment, the system automatically identifies this center. The system proceeds with calculations based on the spatial distribution of grey levels in the mass and its surrounding regions.

The calculations begin by determining the gradient of grey level for each pixel, more conveniently referred to as the gradient of each pixel. The gradient of a pixel G(P) is a vector whose amplitude is the maximum rate of change of grey level from that pixel to the surrounding pixels in the direction where that maximum rate of change occurs and is defined by the relationship ##EQU13## where i and j are unit vectors along the x and y axis and p is the grey level of a pixel along the z axis as a function of the pixel's location along the x and y axis.

Thereafter, the rate of change of grey levels of all pixels in the direction of the center of speculation CS is measured. This is done by calculating the radius vector of each pixel relative to the center of speculation CS. The vector l(P) is the unit vector perpendicular to the radius vector--the line connecting the pixel to the center of spiculation CS. The rate of change of the grey levels at each pixel in relation to the center of speculation can be obtained by the projection of the gradient vector G(P) on the direction of l(p). This is the scalar product of the gradient of a pixel and l(p). Consequently, each pixel is assigned a gradation number based on the scaler product.

Because the structure of speculation is such that the highest rate of change in grey levels, in relation to the center of speculation CS, occurs at the borders of the spicules with its surrounding, the pixels which receive high gradation numbers are considered Speculation Pixels (SP). By identifying the speculation pixels the system provides a better visualization of the mass.

The identification of speculation pixels (SP) is explained more fully hereinafter with reference to FIGS. 8B-8D. At step 800, the system filters the digital image to reduce background noise by using a 3×3 uniform convolution mask.

In the preferred embodiment the system at steps 802 and 804 performs the morphology operations "Grey scale Closing" and "Grey scale opening." Grey scale closing is referred to in the art as the process of successive application of the morphological operations; "dilation" and "erosion." Grey scale opening is the successive application of the morphological operations; "erosion" and "dilation." The structuring element for these operations is a cylinder mask of 0.22 mm-diameter and 14 grey level height. The mask can be viewed as a three dimensional matrix, with the value in each matrix cell being the grey level height. The size of the mask is computed by the relationship: ##EQU14## where X is the size of the mask in pixels, and DPI is the resolution of the scanning process in dots per inch. The 0.22 mm represents the average size of the width of spicules in mammography images.

At step 806 the system develops the Gradient Image (GI) of the original digital image by transforming the grey level value of each pixel into a new grey level value following the relationship

    GI(P)=|G|[Cos(l(P)  G(P)].sup.8

where GI(P) is the new grey level value of each pixel in the Gradient Image GI, |G| is the modulus of the gradient of each pixel in the original digital image and [l(P) G(P)] is the radian measure of the angle between the radius vector and the gradient of each pixel in the original digital image. Because all the cosine values are between 0 and 1 and get smaller as the angle reaches 90°, the power 8 lowers the effect of pixels that form a large angle between the radius vector and their gradients. For example:

For Cos(80°)=0.98 and Cos(45 )=0.71 the ratio of Cos(80°)/Cos (45°) is approximately 1.4.

Whereas:

For Cos(80°)⁸ =0.88 and Cos(45°)⁸ =0.06 the ratio of Cos(80°)⁸ /Cos (45°)⁸ is approximately 15.

Because the value range of GI(P) is very narrow, the system is required to stretch the new Gradient Image, while taking into consideration certain parameters of the image. The mean value of GI(P) over the entire image GI_(mean) and the standard deviation GI_(std) are calculated at step 808. The system at step 810 calculates GI_(min) and GI_(max) which are the minimum and maximum grey level values in the gradient image GI and are defined as:

    GI.sub.min =GI.sub.mean -3 GI.sub.std (0, if GI.sub.mean -3GI.sub.std <0)

    GI.sub.max =GI.sub.mean +3 GI.sub.std

The system at step 812 stretches the interval [GI_(min), GI_(max) ] linearly from 0 to 255.

In the preferred embodiment the system at step 814 applies another "Grey scale Closing" in order to join very close bright regions along a spicule. The structuring element for this operation is a cylindrical mask of 0.14 mm diameter and 14 grey level height as explained above.

The system at step 816 performs a thresholding operation by determining whether the grey level of a pixel in the Gradient Image exceeds a given threshold. In the preferred embodiment, this threshold is 40. If so the system at step 818 assigns a value "1" to the corresponding pixel. If not, the system at step 820 assigns a value "0" to the corresponding pixel. At step 822 the thresholding operation yields a Binary Gradient Image (BGI). At step 824 a filtering operation is performed on the Binary Gradient Image (BGI) whereby all objects having diameters less than 0.14 mm are erased from the image. The resulting image is illustrated in FIG. 8B where curves 710 correspond to the spicules of a mass.

Thus, the location of all the pixels that belong to the speculation pattern only, i.e. the Speculation Pixels (SP) is identified on the Binary Gradient Image BGI.

The system at step 826 begins to calculate certain parameters that correspond to the degree of the speculation of a mass. These parameters include: (1) Speculation Ratio 1; (2) Speculation Ratio 2 (SR2) (SR1)); (3) Shift of Histogram of Speculation Pixels SP(HSP); (4) Power of normalized Histogram HSPnorm; and (5) Height of normalized Histogram HSPnorm.

At step 826, the system calculates the Speculation Ratio 1, which is defined as: ##EQU15## Where N_(tot) SP is the total amount of Speculation pixels in Binary Gradient Image and N1M is the total number of pixels in the image.

At step 827, the system calculates the Speculation Ratio 2 which is defined as: ##EQU16## where NSP is the amount of Speculation Pixels in Binary Gradient Image, for which the value of cos [l(P) G(P)] exceeds a given threshold number, which according to the preferred embodiment, is 0.915, and NIM is the total number of pixels in the image.

At step 828, the system calculates the histogram of Cos [l(P) G(P)] after dividing the values of the Cos [l(P) G(P)] into a given number of intervals. In the preferred embodiment the given number of intervals is 200. This histogram is referred to as the histogram of Speculation Pixels or SP (HSP). FIG. 8C illustrates the histogram of Speculation Pixels.

At step 830, the system calculates the shift of the histogram. The shift is defined as the cosine value that separates the histogram SP (HSP) into two parts with equal areas as illustrated by line 714 in FIG. 8C.

At step 832, the system approximates the shape of the left part of the histogram. The shape is approximated by first obtaining the maximum value of the histogram. The entire histogram is then divided by this maximum value to obtain the normalized histogram HSP norm. The values of the part of HSP norm from zero up to 0.825 are approximated by an exponential function 716, defined as bo exp (b₁.x). The power of the exponential function is defined as the power of the histogram and is equal to b₁.

Finally, at step 834, the system calculates the height of the histogram. The height is defined as the value b₀ in the equation of the exponential function b₀ exp (b₁.x) defined above.

Altogether, five parameters are calculated for the evaluation of the Mammographic Speculation. These parameters assist in the diagnosis of tumor masses observed on a mammogram. The value of each parameter is compared, either manually or automatically by the system, with statistically derived values, to determine whether the observed masses are malignant or benign based on the degree of speculation.

According to another aspect of the invention, the system defines the border of the mass and the spicules using a segmentation process as illustrated in FIG. 9. Once the border of the mass speculation is defined, it is possible to measure additional parameters that assist a physician to diagnose a malignancy. The process of defining the border of the mass includes a region-growing segmentation technique. The region-growing technique yields several sets of a continuous chain of pixels that have grey level values within a predetermined tolerance. Each set of the continuous chain of pixels defines a closed curve that approximates a mass margin. The process selects the set that yields a mass border with the sharpest mass edge, as described in more detail hereinafter. The process of defining the border includes a threshold comparison technique. At step 850, the user is prompted to define a seed pixel inside what appears to be a mass on display 4. At step 852, a predefined threshold T is set. At step 854, a mass margin table is initialized. The mass margin table includes those pixels that are attributed to a chain of pixels that defines a mass margin. At step 856, the grey level of the seed pixel is compared with the grey levels of each of the eight pixels adjacent to it. At step 858, if the difference in grey levels is not less than the predefined threshold T, the system goes to step 864, to indicate that the pixel has failed the comparison test with the seed pixel. The failed pixel is no longer compared with other seed pixels until the next threshold is set. Otherwise, the neighboring pixel is considered to be inside the mass and is added to the mass margin table at step 862.

At step 860, if all eight of the pixels nearest to the initial pixel are included in the chain, then the first seed pixel is dropped from the chain for all future comparisons at step 861. At step 862, all pixels with grey values differing from the seed pixel within a threshold T are added to the margin table. The system uses each added pixel as a seed pixel to compare its grey level to the grey levels of its nearest, non-tested neighbors. At step 866, the set of pixels in the mass margin table is examined to determine whether there is a closed curve. If not, the process repeats, by selecting a seed and comparing the neighboring pixels as described above.

If the examination of the mass margin table indicates that there is a closed curve, the process goes to step 872 to measure and store the sharpness values of the mass margins, as described later. At step 868, the system generates a new threshold T. At step 869, if the grey level of the eight neighbors of the original seed pixel of step 850 are not within the first threshold, then at step 870 this original seed pixel is used to begin the comparison with the new threshold T at step 856. Otherwise, at step 872, the first pixel in the mass margin table is used as a seed and the process begins the comparison again with the new threshold T at step 856. Any pixel not in the chain (rejected in a comparison from a previous threshold) is available for testing as a nearest neighbor to one of the pixels in the chain when it becomes a seed.

In the preferred embodiment, the testing begins at a threshold of T=14 and increases in 17 steps of two to a final threshold of T=48. The values correspond to the brightness that can be attributed to a malignant mass.

As mentioned before, after the comparison for each threshold is completed, and before repeating the process with the next threshold, the system, at step 872, measures the sharpness value of the derived border. The sharpness value of a border represents the sharpness of that border's edge and corresponds to the distance within which the grey level values of pixels on the border of a mass drop to grey level values of the surrounding pixels.

Once all the borders are defined based on the corresponding threshold values, and the sharpness value for each border is calculated, the system compares all the derived sharpness values and selects that border with the highest sharpness value as the one representing the mass speculation on the mammogram.

FIG. 10a illustrates the process for calculating the sharpness value of a border. At step 874, the sharpness value of every 10th pixel (i.e., pixels, 1, 11, 21, . . . n) on the border is calculated. For example, at step 876, for the 11th pixel on the border, the coordinate positions of the 10th, 11th and 12th border pixels are used to calculate the direction of a line normal to the 11th pixel. This normal direction is calculated by using a matrix method known as Discrete Gradient Approximation. At step 878, as illustrated in FIGS. 10b and 10c, the normal line 879 is extended in both directions, so that 15 points are included in both directions, with a point D being the end point inside the mass and point E being the end point outside the mass. At step 880, the grey levels of the 11th pixel and the first 15 pixel points inside and outside the mass are retrieved. The equations for calculating points D and E are

    Dx=Cx+15 Cos α Dy=Cy+15 Sin α

    Ex=Cx-15 Cos α Ey=Cy-15 Sin α

where Dx and Dy are the coordinates of point D; Ex and Ey are the coordinates of point E; Cx and Cy are the coordinates of point C; and α is the angle between line 879 and the horizontal axis.

At step 881, the grey levels of all 31 points are used to make a profile, as illustrated in FIG. 10d, which represents the value of the retrieved grey levels versus the distance. The profile is assumed to have a constant grey level (bright) for the mass inside up to point A; a transition region between points A and B; and a constant grey level (dark) for regions beyond point B. FIG. 10d illustrates the mass region 882, the edge of the mass region 884 and the background region 886.

At step 886, the system defines line 888, which most closely fits the profile of FIG. 10b, based on a least-error method. Line 888 intersects the three regions 882, 884 and 886. At step 890, the value dx=(x2-x1) is measured, where x2 is the coordinate of the first point considered to be outside the mass and x1 is the coordinate of a pixel on the mass border. The value dx represents the width of the border's edge and corresponds to the edge's sharpness. The smaller the value of dx, the sharper the edge of the border.

After the value of dx for every 10th pixel is measured, the average value of dx is derived at step 892. The average value of dx represents the sharpness for a given threshold T. At step 894, the average sharpness of all borders derived using a different threshold T is compared. At step 896, the border with the smallest average dx is considered to be the sharpest and is used by the system for further quantitative analyses, as described hereinafter.

The system displays the selected mass border with the sharpest edge value, superimposed on the original image. The user may scroll through the other mass borders derived based on other thresholds T and select a different border.

The user then has the option of changing the border manually, by allocating several points on the image as part of the border. The system redefines the border by fitting a new curve, based on user-defined points instead of those identified by the system.

When the user approves the mass margins, the system calculates the parameters for the mass, as described below. Before the calculations begin, the system first sorts the pixels of the chain in x and y coordinates, so that |x_(i+1) -x_(i) |≦1 and |y_(i+1) -y_(i) |≦1. This operation arranges the sequence of pixels such that each pixel in x is next to its nearest neighbor, with the smallest value of y, for equal x values.

The system then measures four parameters associated with the brightness of the mass. These parameters are: (i) the average grey level of all pixels in the mass (x); (ii) the sum of two extreme grey level values divided by two (E); (iii) the standard deviation of the grey level values (σ); and (iv) the difference of the two extreme grey level values divided by 2 (E.sub.σ).

The average grey level value of all pixels in the mass (x) is derived by the relationship ##EQU17## where f(x, y) is the grey level value of a pixel with given x and y coordinates. The system can either calculate the grey level value or retrieve the value from the digitized data. The value n is the number of pixels in the mass, defined by the sharpest border derived, based on the threshold comparison process described with reference to FIGS. 9 and 10. The system then colors all pixels contained inside this border and calculates the total count, n.

The sum of the two extreme values divided by 2 (E) is derived by the relationship ##EQU18## where f(x, y)_(max) and f(x, y)_(min) are respectively the highest and lowest grey level values inside the mass.

The standard deviation of the values (σ) is derived by ##EQU19##

Finally, the difference of the two extreme values divided by 2 (E.sub.σ e) is derived by ##EQU20##

The next parameter that the system calculates is the area of the mass. That area is the number of pixels in the mass, n, converted to square millimeters ##EQU21## where DPI is the resolution in dots-per-inch. As described before, n is the number of pixels in the mass defined by the sharpest border.

The next parameter that the system calculates is the average gradient of brightness. This parameter is the sum of the gradient, derived by Discrete Gradient Approximation, of gray levels in the horizontal x and vertical y directions, (.linevert split.∇G_(x) .linevert split.+.linevert split.∇G_(y) .linevert split.), for every pixel in the mass, divided by the total number of pixels, n. ##EQU22## where

    VG.sub.x =f(x+1,y-1)+2f(x+1,y)+f(x+1,y+1)-f(x-1,y-1)-2f(x-1,y)-f(x-1,y+1)

    VG.sub.y =f(x+1,y+1)+2f(x,y+1)+f(x-1,y+1)-f(x+1,y-1)-2f(x,y-1)-f(x-1,y-1)

and f(x, y) is the grey level value of a pixel with x and y coordinates.

The next parameter that the system calculates is the average margin irregularity, as illustrated in FIG. 11. The system then radially divides the mass defined by the unsmoothed margin 900 into 16 segments, by using the pixel position of the user's choice as seed for the center of the 16 radii. The user is urged to select a pixel at the center of the mass.

The system finds a smoothed margin or border 902, whose area approximates the unsmoothed margins of the mass. Using the sorted pixels previously derived based on the conditions |x_(i+1) -x_(i) |≦1 and |y_(i+1) -y_(i) |≦1, the coordinate position of each pixel is averaged with 30 neighbors before it and 30 neighbors after it, to define a smooth pixel coordinate in x and y: 1/61 Σx-coordinate, 1/61 Σy-coordinate.

The ratio, r_(i), of the arc length of the unsmoothed margin 900 divided by the arc length of the smoothed margin 902 is calculated in each segment, except for those segments for which the margin was defined by the user. The arc length in these calculation is defined by the number of pixels. For each segment, the starting pixel, P_(s), and the ending pixel, P_(e), are determined by the intersection of a radius with a smoothed and unsmoothed margin. The x-positions closest to two sequential radii are selected as P_(s) and P_(e), respectively. The count begins with P_(s) and stops with the pixel before P_(e). The r_(i) value is the ratio of these numbers. The previous P_(e) becomes the P_(s) for the next segment. This procedure is repeated from one segment to the next.

The average margin irregularity, r_(i), is the sum of r_(i) for each segment, divided by the total number of segments. Only segments that are not defined by the user are considered.

The system then calculates the upper extreme margin irregularity. This parameter is defined as the average margin irregularity of those segments in the upper 25th percentile of margin irregularity. The system also calculates the lower extreme margin irregularity. This parameter is defined as the average margin irregularity of those segments in the lower 25th percentile of margin irregularity. Again, the system does not include in these calculations segments defined by the user.

                  TABLE 4                                                          ______________________________________                                         Percentile Groups                                                              1 #STR1##                                                                      2 #STR2##                                                                      ______________________________________                                    

Table 4 illustrates margin irregularities in each quarter percentile group. The lower and upper margin irregularity is derived by summing the irregularities r_(i) in each region and dividing that sum by the number of segments in each group.

The next parameters that the system calculates are the margin lengths, in millimeters, of the smoothed and unsmoothed margins. The margin length for each smoothed and unsmoothed border is found by counting the number of pixels in the margin and dividing the count by the resolution, or ##EQU23##

The system then calculates the smoothed form factor, which reflects the compactness or roundness of the smoothed margin as ##EQU24## The area of smoothed margin is calculated as described before.

The system also calculates the ratio of smoothed to unsmoothed length. This ratio is derived by dividing the smoothed margin length in pixels by the unsmoothed margin length in pixels.

The system then calculates the next parameter, which is the margin brightness variation, measured by obtaining the standard deviation of the brightness of all pixels on the smoothed border. This parameter is derived by ##EQU25## where f(x, y) is the grey level value of a point on the smoothed border. This grey level value on the smoothed border is not a data point. Its value is calculated by a function call to a standard graphics library package (often called "GETPIXEL").

A smoother margin of the mass yields a more uniform grey level value and a lower variation of margin brightness.

The next parameter is the average margin sharpness, determined by using the same mathematical procedures described in connection with calculation of sharpness value. However, the system uses the smoothed border and takes 30 points in each direction, for a total of 61 points.

The system also calculates the variation in margin sharpness, which is the standard deviation of the margin width of all sampled pixels, i.e., every 10th pixel on the border, as defined by ##EQU26##

The next parameter is the upper extreme margin sharpness. This parameter is the average margin width of the sampled pixels in the upper 25th percentile of margin width. The system also calculates the lower extreme margin sharpness, which is the average margin width of the sampled pixels in the lower 25th percentile of margin width.

                  TABLE 5                                                          ______________________________________                                         Percentile Groups                                                              1 #STR3##                                                                      3 #STR4##                                                                      ______________________________________                                    

Table 5 illustrates margin sharpness in each quarter percentile group. The lower and upper margin sharpness is derived by summing the margin sharpness dx of every 10 pixels and dividing the sum by the number of 10th pixels sampled.

The next parameter is the deviation of upper extreme margin sharpness. This parameter is the standard deviation of the margin width of the sampled pixels in the upper 25th percentile of margin width. The system also calculates the deviation of lower extreme margin sharpness, which is a standard deviation of the margin width of sampled pixels in the lower 25th percentile of margin width.

                  TABLE 6                                                          ______________________________________                                         Percentile Groups                                                              1 #STR5##                                                                      4 #STR6##                                                                      ______________________________________                                    

Table 6 illustrates the margin width of every 10th pixel in each quarter percentile group. The deviation of lower and upper margin sharpness is derived by calculating the standard deviation of margin width of sampled pixels in lower and upper percentile groups.

The next parameter is the average margin sharpness (E), which is the width of the margin at the widest point plus the width of the margin at the narrowest point, divided by two. ##EQU27##

Finally, the system calculates the variation of margin sharpness (E.sub.σ). This parameter is the width of the margin at the widest point minus the width of the margin at the narrowest point, divided by two. ##EQU28##

It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. 

What is claimed is:
 1. A system for diagnosis of living tissue diseases, comprising:a computer device for controlling the operation of said system; an operator control device coupled to said computer device; a viewing screen coupled to said computer device for displaying digitized images of said living tissue, said operator control device selecting desired portions of said digitized image, and means for quantification of masses present in said living tissue, said quantification means comprising means for defining the margin of a mass in response to a user-defined seed pixel selected with said operator control device.
 2. The system according to claim 1 wherein said mass margin is defined based on a comparison of the grey level of said seed pixel with the grey level of adjacent pixels.
 3. The system according to claim 2, wherein a plurality of said mass margins are defined based on a corresponding threshold value used in said seed pixel comparison process, each margin having an associated sharpness value.
 4. The system according to claim 3, wherein said plurality of mass margins are presented to the user and one of said plurality of mass margins is selected.
 5. The system according to claim 4, wherein at least one parameter associated with a mass defined by said selected mass margin is calculated.
 6. A system for diagnosis of living tissue diseases, comprising:a microcomputer for controlling the operation of said system; a memory coupled to said microcomputer for storing information as directed by said microcomputer; a scanning device coupled to said microcomputer for scanning a mammogram to provide a digital image of said mammogram for storing, viewing and further processing; a viewing screen coupled to said microcomputer wherein said digital image of said mammogram is displayed on said viewing screen; an operator control device coupled to said microcomputer; said microcomputer including circuit means enabling on-line display of selected portions of said scanned mammogram; and means for defining a mass having a corresponding mass margin using a seed pixel selected with said operator control device.
 7. The system according to claim 6, further comprising means for defining a plurality of said mass margins each margin having an associated sharpness value.
 8. The system according to claim 7, further comprising means for selecting a mass margin from said plurality of mass margins.
 9. The system according to claim 8, further comprising means for calculating a parameter associated with said selected mass margin.
 10. In a computer based system, a method for diagnosis of living tissue diseases, comprising the steps of:scanning a mammogram to provide a digital image of said mammogram for storing, viewing and further processing; displaying said digital image on a viewing screen; selecting a desired portion of said digital image; and defining a mass margin in response to a user-defined seed pixel.
 11. The method according to claim 10, further comprising the step of defining a plurality of said mass margins each margin having an associated sharpness value.
 12. The method according to claim 11, further comprising the step of selecting a mass margin from said plurality of mass margins.
 13. The method according to claim 12, further comprising the step of calculating a parameter associated with a mass defined by said selected mass margin. 